import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/home/home'
import search from '@/search/search'
import vip from '@/vip/vip'
import shopcart from '@/shopcart/shopcart'
import newslist from '@/newslist/newslist'

Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            redirect: '/home'
        },
        {
            path: '/home',
            name: 'home',
            component: Home
        }, {
            path: '/search',
            name: 'search',
            component: search
        }, {
            path: '/vip',
            name: 'vip',
            component: vip
        }, {
            path: 'shopcart',
            name: 'shopcart',
            component: shopcart
        }, {
            path: '/newslist',
            name: 'newslist',
            component: newslist
        }
    ]
})